import React, { useEffect } from 'react'
// import axios from 'axios'
import instance from '@/utils/http2';
export default function EnvCom() {
  //useEffect
  useEffect(() => {
    //声明一个函数
    let getData = async() => {
      // http://localhost:8080/goods      http://api.xiaohigh.com/goods
      let result = await instance.get(`/goods`);
      console.log(result);
    }
    getData();
  }, [])
  
  return (
    <div>EnvCom</div>
  )
}
